﻿@model Rsa.DataAccess.Models.Usuario
<script type="text/javascript">
    $(function () {
        $('.registro-submit').corner();
        var fecha = new Date();
        $.datepicker.setDefaults($.datepicker.regional["es"]);
        $("#FechaNacimiento").datepicker({
            changeMonth: true,
            changeYear: true,
            yearRange: '1980:2012'
        });
    });
</script>
@using (Html.BeginForm("Registro", "Inicio")) {
    <h3>
        Registrate
    </h3>
    <table id="registro">
        <tr>
            <td>
                Username:
            </td>
            <td>
                @Html.TextBoxFor(m => m.Username, new { @class = "campo-registro", autocomplete = "off" })
            </td>
        </tr>
        <tr>
            <td>
                Nombre:
            </td>
            <td>
                @Html.TextBoxFor(m => m.Nombre, new { @class = "campo-registro", autocomplete = "off" })
            </td>
        </tr>
        <tr>
            <td>
                Apellidos:
            </td>
            <td>
                @Html.TextBoxFor(m => m.Apellidos, new { @class = "campo-registro", autocomplete = "off" })
            </td>
        </tr>
        <tr>
            <td>
                Email:
            </td>
            <td>
                @Html.TextBoxFor(m => m.Email, new { @class = "campo-registro", autocomplete = "off" })
            </td>
        </tr>
        <tr>
            <td>
                Password:
            </td>
            <td>
                @Html.PasswordFor(m => m.Password, new { @class = "campo-registro", autocomplete = "off" })
            </td>
        </tr>
        <tr>
            <td>
                Sexo:
            </td>
            <td>
                @Html.DropDownList("Sexo", new List<SelectListItem>
                     {
                        new SelectListItem{ Text="Masculino", Value = "1" }, 
                        new SelectListItem{ Text="Femenino", Value = "2" }
                     }, new { @class = "campo-registro", autocomplete = "off" })
            </td>
        </tr>
        <tr>
            <td>
                Fecha de
                <br />
                Nacimiento:
            </td>
            <td>
                @Html.TextBoxFor(m => m.FechaNacimiento, new { @class = "campo-registro", autocomplete = "off" })
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td align="left">
                <input class="registro-submit" type="submit" value="Registrate" />
            </td>
        </tr>
    </table>
    <br />
}
